package larrys.pomodoro.domain.repository;

import java.util.Collection;
import java.util.Date;

import larrys.pomodoro.domain.entity.Round;

public interface RoundRepository {

	Round getRunningRoundByUserId(long userId);

	Collection<Round> getRoundByUserId(long userId, Date from, Date to);

	Round getRoundById(long id);

	Collection<Round> getActivityRelatedRound(long activityId);

	void markRoundFinishedById(long id, Date endTime);

	void markRoundInterruptedById(long id, Date endTime);

	void addRound(Round round);

	void updateRound(Round round);

	void markRoundDeletedById(long id);

}
